package com.ruoyi.project.module.parameter.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 请求参数表 api_parameter
 * 
 * @author ruoyi
 * @date 2018-10-08
 */
public class Parameter extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 请求参数ID */
	private Integer apiParameterId;
	/** 所属项目ID */
	private Integer apiProjectnameId;
	/** 参数名称 */
	private String parameter;
	/** 参数描述 */
	private String description;
	/** 默认值 */
	private String defaultValue;
	/** 参考值 */
	private String referenceValue;
	/** 值类型 */
	private String valueType;
	/** 是否必填 */
	private Integer required;

	/** 传参方式 */
	private String transmissionMode;

	public void setApiParameterId(Integer apiParameterId) 
	{
		this.apiParameterId = apiParameterId;
	}

	public Integer getApiParameterId() 
	{
		return apiParameterId;
	}
	public void setApiProjectnameId(Integer apiProjectnameId) 
	{
		this.apiProjectnameId = apiProjectnameId;
	}

	public Integer getApiProjectnameId() 
	{
		return apiProjectnameId;
	}
	public void setParameter(String parameter)
	{
		this.parameter = parameter;
	}

	public String getParameter()
	{
		return parameter;
	}
	public void setDescription(String description) 
	{
		this.description = description;
	}

	public String getDescription() 
	{
		return description;
	}
	public void setDefaultValue(String defaultValue) 
	{
		this.defaultValue = defaultValue;
	}

	public String getDefaultValue() 
	{
		return defaultValue;
	}
	public void setReferenceValue(String referenceValue) 
	{
		this.referenceValue = referenceValue;
	}

	public String getReferenceValue() 
	{
		return referenceValue;
	}
	public void setValueType(String valueType) 
	{
		this.valueType = valueType;
	}

	public String getValueType() 
	{
		return valueType;
	}
	public void setRequired(Integer required) 
	{
		this.required = required;
	}

	public Integer getRequired() 
	{
		return required;
	}

	public String getTransmissionMode() {
		return transmissionMode;
	}

	public void setTransmissionMode(String transmissionMode) {
		this.transmissionMode = transmissionMode;
	}

	@Override
	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apiParameterId", getApiParameterId())
            .append("apiProjectnameId", getApiProjectnameId())
            .append("parameter", getParameter())
            .append("description", getDescription())
            .append("defaultValue", getDefaultValue())
            .append("referenceValue", getReferenceValue())
            .append("valueType", getValueType())
            .append("required", getRequired())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("transmissionMode",getTransmissionMode())
            .toString();
    }
}
